//1295. 统计位数为偶数的数字
//思路：数学方法，(int)(log10(num)+1)%2 == 0就是位数为偶数的数字

#include <vector>
#include <math.h>
using namespace std;

class Solution {
public:
    int findNumbers(vector<int>& nums) {
        int count = 0;
        for(auto e : nums)
        {
            if((int)(log10(e)+1)%2 == 0)
                count++;
        }
        return count;
    }
};